//
// Created by tang on 23-3-25.
//

#include "application.hpp"
#include "service/svc_manager.hpp"
#include "services/pi_config_service.hpp"
#include "services/pi_http_service.hpp"
#include "services/pi_timer_service.hpp"
#include "services/gl_render_service.hpp"

#include "utils/path_tools.hpp"

void PiInfoApp::register_services ()
{
    ServiceManager::instance ()->register_service (new pi_http_service);
    ServiceManager::instance ()->register_service (new pi_config_service ("pi_config.dat"_DP));
    ServiceManager::instance ()->register_service(new pi_timer_service);
    ServiceManager::instance ()->register_service (new gl_render_service);
}

void PiInfoApp::clear_services ()
{
    ServiceManager::instance ()->clear ();
}
